package com.autumn.annotations.ioclife.config;

import com.autumn.annotations.ioclife.iocdemo.Car;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * ClassName: IocLifeDemoConfig
 *
 * @Description:
 * @Author: wangqiuyang
 * @Date: 2022/1/25 2:26 下午
 * History:
 * <author>          <time>          <version>          <desc>
 * wangqiuyang    2022/1/25 2:26 下午   @Version 1.0        描述
 */
@Configuration
public class IocLifeDemoConfig {

    @Bean(value = "car",initMethod = "init" , destroyMethod = "detory")
    public Car car() {
        return new Car();
    }
}
